package com.example.lte.repo;

import com.example.lte.entity.RoleEntity;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.jpa.repository.Modifying;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.query.Param;
import org.springframework.stereotype.Repository;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * @author lzh
 * @date 2020/10/13 - 14:17
 */
@Repository
public interface RoleRepo extends JpaSpecificationExecutor<RoleEntity>, JpaRepository<RoleEntity,Long> {

    RoleEntity findByName(String roleName);

    List<RoleEntity> findByIdIn(List<Long> roleIds);
}
